more py3 fixing