[1564] pep8, pylint fixed

https://gist.github.com/ArGroc/c445213670fb29b54557