Replaced rm_rf function in lib.py with shutil.rmtree.