use better syntax

for line in file: is better than for line in file.readlines()

thanks to mosky.tw :)