Ruby Type Checking In Python Code For Games