created draft of prepare.py (not yet finished)