pyterm: make it usable with python 2 and 3

As a bonus I added a setup script for hustle-free installation of pyterm. ;-)