def recalculate_cost(self, ts):
    if (ts not in self.in_flight):
        self.remove_key_from_stealable(ts)
        self.put_key_in_stealable(ts)
def recalculate_cost(self, ts):
    if (ts not in self.in_flight):
        self.remove_key_from_stealable(ts)
        self.put_key_in_stealable(ts)