def get_next_speaker_and_last_speaker(conversation_posts, author, partner):
    """
    Input:
        All the current posts in a 2 speaker conversation
        The two speakers
    Output:
        Based on the given list of posts, return who speaks next and who spoke last
    """
    last_speaker = author
    next_speaker = partner

    last_post = conversation_posts.last()
    if last_post:
        if last_post.author == next_speaker:
            last_speaker = partner
            next_speaker = author

    return next_speaker, last_speaker