Hi there!
I never worked with Twitter, but I did with Tumblr and e-mail attachments.
Usually, I would get a lot of issues with the add-ons. Because of time constrains, I decided to do system calls to run python scripts. For me, it was way simpler, less messy, OS threaded and well documented. Since then, I've never switched back.
Hope this is helpful.