'Returns the config file content with options to add and remove applied'

def get_updated_content(self):

    output = ''
    for (key, val) in self.global_options_to_add.items():
        output += self.keyval_to_line((key, val))
    eliloconf = open(self.path, 'r')
    for line in eliloconf.readlines():
        if self.matches_global_option_to_remove(line):
            continue
        if self.matches_global_option_to_add(line):
            continue
        else:
            output += line
    eliloconf.close()
    return output
