Fix a bug if you have no roles at all
This could not happen currently, but might happen later on if a group
is defined that does not have an 'anybody' membership.
Patch by: Sverre Rabbelier
Benjamin Niemann <pink at odahoda dot de>: Main developer of Python target.
Clinton Roy <clinton.roy at gmail dot com>: AST templates and runtime.