obvious py3 incompatibility fixes