Added context manager protocol support to file class (issue #63)