pub fn build_py_methods(
    ast: &mut ItemImpl,
    methods_type: PyClassMethodsType
) -> Result<TokenStream>