fix for python3.x