support python 3.1