'Pop a request'

def pop(self, timeout=0):

    if (timeout > 0):
        data = self.server.blpop(self.key, timeout)
        if isinstance(data, tuple):
            data = data[1]
    else:
        data = self.server.lpop(self.key)
    if data:
        return self._decode_request(data)
