fixed that OSError: [Errno 18] Invalid cross-device link

os.renames does not work across filesystems.