Added first working python backend for encoding via xterm