pythonize: import and return generated class