pymel.util.utilitytypes.makeMethod

makeMethod(name)