(Sorry I\'m new to Python)
I\'m running a python django script as follows:
python3 manage.py test
class Command(NoArgsCommand)
Inner classes are very rarely useful in Python. Certainly here there is nothing to be gained by making GoalScorerX an inner class. Move it outside; also note that there is no restriction in Python in the number of classes in a file, so it's fine to have them both as top-level classes.
(Note, you could fix this by referring to the inner class as Command.GoalScorerX - but don't do that.)