'Returns a notification. Note that this function is consuming.'

def getNotification(self):

    try:
        notif = self.q.get(block=False)
        return notif
    except Queue.Empty:
        return None
