add first shoot of Python 3 rewrite