def get_best_answer(question):
    """
    Returns the highest voted answer from a question object
    :param question: a question object
    :return: the highest voted answer or none if there weren't any
    """
    answers = question.answers
    if len(answers) > 0:
        best = answers[0]
        if len(answers) > 1:
            for answer in answers[1:]:
                if best.score < answer.score:
                    best = answer
        return best
    return None