Python Type Checking Function Definition Biology