attempted fix for python3 compilation