def _found_target_class(module, name):
 members = inspect.getmembers(module, inspect.isclass)
 return [x[1] for x in members if (x[0] == name.capitalize())][0]

def _found_target_class ( module , name ) : members = inspect . getmembers ( module , inspect . isclass ) return [ x [ 1 ] for x in members if ( x [ 0 ] == name . capitalize ( ) ) ] [ 0 ]
searches for a class with the specific name: it should be equal to capitalized $name .