Support py3 and add tests
Merge pull request #8 from striglia/py3.4_support

Support py3 and add tests