messages = queue_in.get_messages(wait_time_seconds=20, num_messages=10)
for message in messages:
    logger.info('message: %s' % (message,))
queue_in.delete_message(message)
Processing SQS queues with boto