Add support for python 2 for the backend.

and add proper testing on travis (now using tox)

Fix #146