def get_sqs_messages(queue, count):
    """
    Get a number of SQS messages, if available
    :param queue: Boto3 SQS Queue object
    :param max: Maximum number of messages to get. Usually 1 to 10
    :return: list of messages, up to count
    """
    return queue.receive_messages(MaxNumberOfMessages=count)