Here I'm sharing a python script that contains two classes to instance using the amazing pyext library. One of these two classes converts messages and numbers to a series of its ascii character codes along with an index number, so one can store a message right away in a table. The other class does the inverse job.
There is a patch that tries to show how this is implemented, á la help-patch.
This works by putting the script into the <whateverComesFirst>/pyext/py-master/scripts/ folder so the pyext external can 'see' it. <edit> I am using Pd-vanilla 0.47-1 on Debian Stretch </edit>
Well, let me know if this is useful to anyone if you want.