Revert "avoid TB for encoding in python3"

This reverts commit 886df517fa803b51386275baa26763d63fc7537e.
remove unused import "commands"
make run_command_print() compatible with python3
Merge branch 'run_command_print' of https://github.com/xsuchy/tito into xsuchy-run_command_print
Fix print without newline for EL5.
Fix pep8 issues.
Merge branch 'xsuchy-run_command_print'