'Remove items from the sequence when deleting.'

def __delitem__(self, key):

    dict.__delitem__(self, key)
    if (key in self.scalars):
        self.scalars.remove(key)
    else:
        self.sections.remove(key)
    del self.comments[key]
    del self.inline_comments[key]
