This is unnecessary.  Just do straight `for stat in stats.splitlines():`