code: def decrease_weight(self, proxy):
          
          new_weight = proxy.weight * self.dec_ratio
          if new_weight < self.weight_thr:
              self.remove_proxy(proxy)
          else:
              proxy.weight = new_weight
docs: Decreasing the weight of a proxy by multiplying dec_ratio