def open_any(filename):
if filename.endswith("<STR_LIT>"):<EOL><INDENT>return gzip.open<EOL><DEDENT>if filename.endswith("<STR_LIT>"):<EOL><INDENT>return bz2.BZ2File<EOL><DEDENT>return open<EOL>
Helper to open also compressed files