'Replace the parsed object corresponding to name with obj, which must be
a similar object, i.e. an lxml tree for HTML/XML or a cssutils
stylesheet for a CSS file.'

def replace(self, name, obj):

    self.parsed_cache[name] = obj
    self.dirty(name)
