code: def get(self, now):
          with self.lock:
              items = self.db.zrangebyscore(self.key, 0, now - self.min_age,
                                            start=0, num=1)
              if not items:
                  return None
              item = items[0]
              self.db.zrem(item)
              return item