I installed @bear's python-twitter https://github.com/bear/python-twitter with stash like this pip install python-twitter
I should of course have just looked for a Twitter module in the pythonista documentation, which I did after installing python-twitter and realized I should just use that.
There was just one problem:
import twitter
raised the following error:
ImportError: This package should not be accessible on Python 3. Either you are trying to run from the python-future src folder or your installation of python-future is corrupted.
This doesn't just happen when I import twitter, but also with Images, when I run my script the uploads pictures to Imgur and when I open the pythonista 3 widget from the share menu.