added python 3 support. added unit tests. added travis configuration