os.rename doesn't handle cross filesystem moves. 

Updated to use shutil.move instead. The tmp dir and destination can be on different filesystems now.