<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_app_name(app_name):
 """ Returns a app name from new app config if is a class or the same app name if is not a class. """

    type_ = locate(app_name)
    if inspect.isclass(type_):
        return type_.name
    return app_name