Cleaned up some unused code in recordsweep.py