Ignore py_django for tests + fix docstring of map_exceptions
Use frozensets for states