Archaic. :)

This should be:

    with open(options['location'], 'r'+mode) as f:
        original = f.read()