basic_clean.py now complete, but not tested / debugged.