<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _parse_team_name(self, team):
 """ Parse the team name in the contract table. The team names in the contract table contain special encoded characters that are not supported by Python 2.7. These characters should be filtered out to get the proper team name. Parameters team : string A string representing the team_name tag in a row in the player's contract table. Returns ------- string A string of the team's name, such as 'Houston Astros'. """

        team = team.replace('&#160;', ' ')
        team = team.replace('\xa0', ' ')
        team_html = pq(team)
        return team_html.text()