Add tests and python 2.7 support.