def get_messages(sqs_queue, pull_batch_size=10, wait_time_seconds=5):
    """Get n messages from the provided sqs queue."""
    messages = sqs_queue.receive_messages(
        MaxNumberOfMessages=pull_batch_size, WaitTimeSeconds=wait_time_seconds)
    return messages