Passing travis tests and Py3 support

Fixes for issues #87 and #88, which were more or less per-requisites for starting work on #45 (not yet started).