Apply PEP8 to generator.py

i would keep using `self.get_providers`, even if its implementation is trivial at the moment.