you couls aldo just replace `del attr` with `delattr(self, attr)