Adds python unit tests.
Merge pull request #3 from shipunyc/updates/tests

Adds python unit tests.