Support Python 3.
Merge branch 'python3'