Pythonista 3 scripts, The script is below: from