Add support for Python 3.

Make travis run py3 tests too.
Add dependency on 'six'.