Is the purpose of this just to set the default self.__runonce__? hasattr seems like a slightly more straightforward way to do this.