autopep8

Look like code have many different code styles at once. I use auto tools as `autopep8` and manual checking for update code. This patch take care at most about code stile spacing and didn't:
- line length, but now it can be too long
- double and single quotes for strings (for code used more single for docstring double)
- deprecated and python3 incompatible statements
- doctest style