The issue is because the os.rename only works if my source and destination are on the same file system (same server) since my locations are mounted differently this does not work. Since moving the source folder to the same server as my destination this now works.