'Removes added attributes while leaving original attributes.'

def resetcache(self):

    for key in self.__cache:
        try:
            delattr(self, key)
        except AttributeError:
            pass
    self.__cache.clear()
