Put Opened file into with statement in idml.py regression tests.