Update substitution.py