Removed rm and rsync with shutil.rmtree and shutil.copytree,