Handle Python3.1.