Update removeInstances.py