twurl - https://github.com/twitter/twurl but it is ruby, not python
you may want to explore tweepy, python wrapper around Twitter API
here are direct message methods - http://tweepy.readthedocs.io/en/v3.5.0/a...ge-methods
you may want to explore tweepy, python wrapper around Twitter API
here are direct message methods - http://tweepy.readthedocs.io/en/v3.5.0/a...ge-methods