def _app_id(app_id):
 if (app_id[0] != '/'):
  app_id = '/{0}'.format(app_id)
 return app_id

def _app_id ( app_id ) : if ( app_id [ 0 ] != '/' ) : app_id = '/{0}' . format ( app_id ) return app_id
make sure the app_id is in the correct format .