py3 fixes: reduce and import *