py3 support, and a tiny tweak to support a particular LiSE feature
Now actually python3 compatible, not using python2 anymore