def parse_teams(competitors):
    """Parse a competitors object from Bovada and return the home and away teams, respectively"""
    if len(competitors) > 2:
        raise Exception("Unexpected objects in competitors")
    home_team = ""
    away_team = ""
    for team in competitors:
        if team["home"]:
            home_team = team["name"]
        else:
            away_team = team["name"]
    if not home_team == "" or away_team == "":
        return home_team.upper(), away_team.upper()
    else:
        raise Exception("Competitors was not properly parsed. Missing data.")