'Returns the next line from the file.
Returns:
A string, terminted by
. The last line may not be terminated by
If EOF is reached, an empty string will be returned.'

def next(self):

    line = self.readline()
    if (not line):
        raise StopIteration
    return line
