Modified filterUnmatchedRecord function in utils.py