The MessageMedia Messages API provides a number of endpoints for building powerful two-way messaging applications.
For a complete walkthrough, and to see the API description, check out the github page at https://github.com/gtremoyne/messages-python-sdk