Ruby Type Checking In Python If You Executed