pyterm: move to python3

DO NOT MERGE - there are still problems with binary to string conversion, which needs to be explicite in python3