def admin(handler_method):
    """
  This decorator requires admin, 403 if not.
  """

def auth_required(self, *args, **kwargs):
    if users.is_current_user_admin():
        handler_method(self, *args, **kwargs)
Authentication on App Engine / Python / Django non-rel over JSON