import sys sys.path.append('../..') import stringtools print(stringtools.hexlify(b'A stringexample with non printable characters like \x12'))