run_tests.py: Update 'file()' -> 'open()'

open() has been the recommended usage for quite a while now, and file() is
gone in Python 3.