pyterm: move to python3