'Creates the form from a stored file name.
Args:
filename (str): The file to read from.
form (dict): A mapping for the form.
Notes:
Kwargs are passed through to Cel creation.'

def reload(self, filename=None, form=None, **kwargs):

    kwargs.pop('enforce_size', None)
    kwargs.pop('width', None)
    kwargs.pop('height', None)
    if (form or self.input_form_dict):
        datadict = (form if form else self.input_form_dict)
        self.input_form_dict = datadict
    elif (filename or self.filename):
        filename = (filename if filename else self.filename)
        datadict = all_from_module(filename)
        self.filename = filename
    else:
        datadict = {}
    cellchar = to_str(datadict.get('FORMCHAR', 'x'))
    self.cellchar = to_str((cellchar[0] if (len(cellchar) > 1) else cellchar))
    tablechar = datadict.get('TABLECHAR', 'c')
    self.tablechar = (tablechar[0] if (len(tablechar) > 1) else tablechar)
    self.raw_form = _to_ansi(to_unicode(datadict.get('FORM', '')).split('\n'))
    self.raw_form = (self.raw_form[1:] if self.raw_form else self.raw_form)
    self.options.update(kwargs)
    self.mapping = self._parse_rectangles(self.cellchar, self.tablechar, self.raw_form, **kwargs)
    self.form = self._populate_form(self.raw_form, self.mapping)
