Making file block reading more pythonic with iter