written prep.py