Make python bindings compatible with python3. #4146