docs: def put(path, obj):
      """Write an object to file"""
      try:
          import cPickle as pickle
      except:
          import pickle
  
      with open(path, 'wb') as file:
          return pickle.dump(obj, file)