def readmodule(module, path=None):
 res = {}
 for (key, value) in _readmodule(module, (path or [])).items():
  if isinstance(value, Class):
   res[key] = value
 return res

def readmodule ( module , path = None ) : res = { } for ( key , value ) in _readmodule ( module , ( path or [ ] ) ) . items ( ) : if isinstance ( value , Class ) : res [ key ] = value return res
backwards compatible interface .