Merge pull request #1 from t2y/master

follow PEP8 coding style and use pytest/tox for testing
support Python 3.2 and 3.3