Move code out of __init__.py

Only the transform function is exposed through __init__.py for easy
library usage.
Add python 3.4 to tox testing