Apply PEP8 to factory.py
Merge pull request #136 from mdxs/pep8_factory

Apply PEP8 to factory.py