def get(self):
    if not self.helper.is_user_cloud_admin():
      response = json.dumps({"error": True, "message": "Not authorized"})
      self.response.out.write(response)
      return

    mem_stats = memcache.get_stats()
    self.response.out.write(json.dumps(mem_stats))
Set an attr with protection of class members.
dataset/ETHPy150Open AppScale/appscale/AppDashboard/dashboard.py/MemcacheStats.get--crossover with--dataset/ETHPy150Open ipython/ipython-py3k/IPython/utils/ipstruct.py/Struct.__setattr__