def get_line(output,string):
    """ Return the line number in 'output' containing the first occurence of 'string' """ 

    for i,line in enumerate(output):

        if (string in line):
            return i