According to 2to3's instruction, fix some problems.