escaping/unescaping, encoding/decoding for all the python flavors