def from_class_path(cls_path):
 (module_path, cls_name) = cls_path.split(':')
 module = __import__(module_path, fromlist=[cls_name])
 return getattr(module, cls_name)

def from_class_path ( cls_path ) : ( module_path , cls_name ) = cls_path . split ( ':' ) module = __import__ ( module_path , fromlist = [ cls_name ] ) return getattr ( module , cls_name )
returns the class takes a class path and returns the class for it .