I just noticed that under Pythonista, it is not required to say
import os,
import sys or
import shutil.
That seems fine ... until you run the same script on another platform.

So, be careful to import these modules explicitily in order to avoid problems when porting to another platform.