altered the fetch_all_teams() function

added an if statement to make sure certain anomalies are taken care of
little changes

little changes in both files, removed some test code and some sys.exit()
statements