Ew, Python has not just a .copy() function, but a .copy2() function. https://docs.python.org/3.5/library/shutil.html#shutil.copy2

@williballenthin