This doesn't seem necessary here. Doesn't the built-in ```open``` return a context manager even in python 2.6?