Python 3 compatibility + tests

Hi there,

I've updated the project to support Python 3, adding trivial Travis tests and fixing PEP8/Pylint warnings in the process. Would you be interested in merging this? I can split this into separate PRs instead of this big one, too.