'Init the CSV export IF.'

def __init__(self, config=None, args=None):

    super(Export, self).__init__(config=config, args=args)
    self.csv_filename = args.export_csv
    try:
        if PY3:
            self.csv_file = open(self.csv_filename, 'w', newline='')
        else:
            self.csv_file = open(self.csv_filename, 'wb')
        self.writer = csv.writer(self.csv_file)
    except IOError as e:
        logger.critical('Cannot    create    the    CSV    file:    {}'.format(e))
        sys.exit(2)
    logger.info('Stats    exported    to    CSV    file:    {}'.format(self.csv_filename))
    self.export_enable = True
    self.first_line = True
