Checking when shutil.copyfile is done
The shutil functions should return only after the operation is finished. If nothing funny is going on on the OS level it should be safe this way.
If you know the size of the file you could check if that is correct.
copyfile
is a blocking function. By the time you get to #do further actions
it should always be done. Are you having issues where it isn't?