Pep8 check

- Some cleanup of the code to satisfy pep8 rules except in `migrations` and `tests` folders.
- A `pep8` check has  been added to the travis build.
- An `.editorconfig` file added to the project.