port to Python 3
Merge branch 'py3' - python 3 port

* py3:
  port to Python 3