old_contents: import os
  import shutil
  
  def copy(orig, dest, useShutil=False):
      if os.path.isdir(orig):
          if useShutil:
              shutil.copytree(orig, dest, symlinks=True)
          else:
              os.popen("cp -rf {} {}".format(orig, dest))
      else:
          if useShutil:
              shutil.copy(orig, dest)
          else:
              os.popen("cp {} {}".format(orig, dest))
  
new_contents: import os
  import shutil
  
  def copy(orig, dest, useShutil=False):
      if os.path.isdir(orig):
          if useShutil:
              shutil.copytree(orig, dest, symlinks=True)
          else:
              os.system("cp -rf {} {}".format(orig, dest))
      else:
          if useShutil:
              shutil.copy(orig, dest)
          else:
              os.system("cp {} {}".format(orig, dest))
  
subject: Copy now waits for files to be copies over