This library will help you decode raw SMS data you can get from a GSM modem.
Requires Python 3.6
pip install smspdudecoder
If you want to experiment with it, clone the repository, do some changes, and type tox
(tox needs to be installed) to launch tests.