Reading data blocks from a file in Python,line = f.readline()