Apply PEP8 to generator.py
Pre-compiling regex
Prefer singe-quoted string literals
Using list comprehension
Continue use of get_providers
Merge pull request #140 from mdxs/pep8_generator

Apply PEP8 to generator.py