Fixed bugs in QuickClean.py, made it generic.