added tox py27 environment

added tox config for running unit tests
pep8 formatting fixes for mock
Merge pull request #31 from pkit/tests_fixes

added tox py27 environment