This is a known issue: https://github.com/omz/Pythonista-Issues/issues/502
Until omz releases an update to fix this, the only workaround that I know of is to use Python 3 instead of Python 2.
Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.