code: def cp(args):
      
      p = OptionParser(cp.__doc__)
      p.add_option("--force", default=False,
                   action="store_true", help="Force overwrite if exists")
      p.set_cpus()
      opts, args = p.parse_args(args)
  
      if len(args) != 2:
          sys.exit(not p.print_help())
  
      store, folder = args
      force = opts.force
      cpus = opts.cpus
      if op.exists(store):
          contents = [x.strip().split(",") for x in open(store)]
      else:
          contents = glob_s3(store)
  
      tasks = []
      for c in contents:
          if isinstance(c, six.string_types):
              oc = op.basename(c)
              tc = op.join(folder, oc)
          else:
              if len(c) == 2:
                  c, tc = c
              else:
                  c, = c
                  tc = op.basename(c)
          tasks.append((c, tc, force))
  
      worker_pool = Pool(cpus)
      worker_pool.map(worker, tasks)
      worker_pool.close()
      worker_pool.join()
docs: %prog cp "s3://hli-mv-data-science/htang/str/*.csv" .
  
      Copy files to folder. Accepts list of s3 addresses as input.