Python Remove Lines From Scanned