[python] Delete a dictionary item if the key exists