Support for Python 2 and Python 3
Fix doctest example output
Pep8 police
Updated docs