We're locked to python 2.7, so we can get away with this if we want:

```python
with open(local_automate_file, "r") as input_xml, \
        open(tmp_automate_file, "w") as output_xml: