changes for python3
changes for python3