Another problem was os.access changes the st_mtime value and then making a backup were changing the files properties.
Another problem was os.access changes the st_mtime value and then making a backup were changing the files properties.