def load_command_class(app_name, name):
 module = import_module(('%s.management.commands.%s' % (app_name, name)))
 return module.Command()

def load_command_class ( app_name , name ) : module = import_module ( ( '%s.management.commands.%s' % ( app_name , name ) ) ) return module . Command ( )
given a command name and an application name .