remove stale commented code from patch.py