def dequeueMessage(queue):
    """
    Dequeue  a single  message from the queue.
    Returns None if no message found.
    """

    m = queue.read()
    if m is None:
        return None
    else:
        queue.delete_message(m)
        return m.get_body()