fixed build (py3 compatibility issue)