python3 clean updated.
Merge pull request #2245 from cadusk/p3

python3 clean updated.