more pythonic file read