def get_app_name(app_name):
type_ = locate(app_name)<EOL>if inspect.isclass(type_):<EOL><INDENT>return type_.name<EOL><DEDENT>return app_name<EOL>
Returns a app name from new app config if is
a class or the same app name if is not a class.