script to clean notebook