code: def dump(self, filename):
          
          try:
              with open(filename, 'wb') as fp:
                  cPickle.dump(self.counters, fp)
          except Exception as e:
              logging.warning("can't dump counter to file %s: %s", filename, e)
              return False
          return True
docs: Dump counters to file