Fixed #20488 -- Removed homemade copystat

Removed homemade copystat since shutil.copystat is always available
for Python >= 2.6