Fix Python text_tranfer.

Python's text_transfer was missing quotes around the hex representation
of the portion of code to be executed.
Fix Python2.x and Python3.x incompatibilities.
Merge pull request #179 from mlalic/bugfix-python-repl

Fix Python text_tranfer.