code: def get_app_name(app_name):
      
      type_ = locate(app_name)
      if inspect.isclass(type_):
          return type_.name
      return app_name
docs: Returns a app name from new app config if is
      a class or the same app name if is not a class.