Fixes for flake8 and pylint.

Building further on https://github.com/SoCo/socos/pull/15

fixes lint issues. So far fixed flake8.