Update before.py