[1740] Correcting pylint and pep8 errors

https://gist.github.com/kamilgrela/f36dfc7af12272427889