added if-else condition on getTeamLeagueByID function (getLeague.py)