Py3 compatibility

pretty minor fixes, mainly unicode literals, fixing a few print statements, and dropping distribute (which is deprecated now)