more py3 compatibility