Repace shutil.rmtree with rm -r