minor py3 compatibility fix