fixed to follow PEP8 coding style
fixed to pass some invalid doctests
added tox.ini to test for pep8/doctest with pytest
Merge pull request #1 from t2y/master

follow PEP8 coding style and use pytest/tox for testing