Use __opts__ not self.opts