def _update_per_namespace():

  for acc in account.Account.query().iter():
    try:
      acc.refresh_devices()
      acc.put()
    except:
      logging.error('Error refreshing account %s',
                    acc.key.string_id(), exc_info=sys.exc_info())

  for _room in room.Room.query().iter():
    try:
      _room.update_lights()
    except:
      logging.error('Error updating room %s',
                    _room.name, exc_info=sys.exc_info())
remove samples not in design
dataset/ETHPy150Open tomwilkie/awesomation/src/appengine/tasks.py/_update_per_namespace--crossover with--dataset/ETHPy150Open CGATOxford/cgat/CGAT/Counts.py/Counts.restrict