PEP8 corrections.
Activated tests and corrected middleware error.
Merge pull request #11 from tarak/develop

PEP8 corrections.