Rename task.pid to task.process as it may be a tuple