revert pep8 cleanups in loaders.py

with this revert dynamic creation of tests should work again