def open_enc(fn, utf16):
if utf16:<EOL><INDENT>return codecs.open(fn, encoding='<STR_LIT>')  <EOL><DEDENT>return open(fn, '<STR_LIT>')<EOL>
Open a file for reading with either the standard built-in open() or the
open in the codecs module for reading UTF-16 encoded files.

:param fn: Name of the file to open
:param utf16: Boolean flag to specify a UTF-16 file