'Performs initialization and validation of the output file.
This implementation checks that the input file exists and can be
opened for writing.
Args:
filename: The string given as the --filename flag argument.
exporter_opts: The string given as the --exporter_opts flag argument.'

def initialize(self, filename, exporter_opts):

    CheckOutputFile(filename)
    self.output_filename = filename
