Fill in logic of Team stats

I have completed the functions in parse_team_stats.py. They pass all of the unittests, which are also included.