pub fn gen_py_method<'a>( cls: &Type, name: &Ident, sig: &mut MethodSig, meth_attrs: &mut Vec<Attribute>) -> TokenStream