Add code to remove defunct python processes