Fix bug in mk_teams.py