Pythonista uses Python 2.7.5, which is a little older than the current 2.7.11 (and I think 2.7.12 is currently in release candidate status). So any standard library features added after 2.7.5 aren't available in Pythonista.