You can also tap and hold the : key on Pythonista's extra keyboard row for an undo option.