Teach gen_py to break long callback wrappers