def movefile(source, dest):
 if os.path.exists(dest):
  try:
   os.unlink(dest)
  except OSError:
   pass
 os.rename(source, dest)

def movefile ( source , dest ) : if os . path . exists ( dest ) : try : os . unlink ( dest ) except OSError : pass os . rename ( source , dest )
move a file .