include partialmethod in py_modules