(From http://stackoverflow.com/questions/2452861/python-library-for-converting-plain-text-ascii-into-gsm-7-bit-character-set, ran out of space in the comment section.)
Running the original file does not work in either Python 2 or 3.
In Python2, the program prints this:
64868d8d903a7390938d85
(which is wrong) because it is using the indexes of gsm
which do not map to the index of their GSM encodings due to the fact that it is a bytestring with some characters taking up multiple bytes. gsm
is actually equal to