Added substitute.py