Simplesms is a project mainly written in Python, it's free.
Simple Python GSM (SMS/USSD) Gateway
README.txt