source_path = '\\\\mynetworkshare'
dest_path = 'C:\\TEMP'
filename = '\\my_file.txt'
shutil.copyfile(source_path + filename, dest_path + filename)
How to copy a file from a network share to local disk with variables?