I have a single code file for my Google App Engine project. This simple file has one class, and inside it a few methods. Why does this python method gives an error saying global
You have to use it like this:
self.gen_groups(input)
There is not implicit "self" in Python.