minor py3 and import tweaks