Here is below code which will move and replace individual file:
import shutil import os src = \'scrFolder\' dst = \'./dstFolder/\' filelist = [] files = os.
If you specify the full path to the destination (not just the directory) then shutil.move will overwrite any existing file:
shutil.move
shutil.move(os.path.join(src, filename), os.path.join(dst, filename))