fixed the issue with createrandomleague.py