added another for-loop on getTeamLeagueByID function (getLeague.py)