Fixed syntax and shutil errors