I tried the above without crashing in Pythonista 3 beta and Pythonista 2 beta. (Latest)