improve 'team_handler' method in soccerwayhandler.py