Made Python3 changes.