pyterm: Make pyterm available in python2 and python3
Merge pull request #1236 from authmillenon/pyterm-six

pyterm: make it usable with python 2 and 3