Same update to pathway.py