Use anonymous modules instead of types in pywrap()