#NEWLINE# def team_stats( game_id ) : #NEWLINE# #INDENT# 'Return dictionary of team stats for game matching the game id.' #NEWLINE# data = mlbgame . stats . team_stats ( game_id ) #NEWLINE# output = { x : mlbgame . stats . TeamStats ( data [ x ] ) for x in data } #NEWLINE# return output