Fix Python3 compatability issue.