Change status.pid to use Python regular expressions instead of shelling out to grep