def find_initial_run(root):
    """ Scan all attempts in run to find lowest id """
    initial_run = None
    for item in root.findall('AttemptHistory/Attempt'):
        current_run = int(item.attrib['id'])
        if initial_run == None or current_run < initial_run:
            initial_run = current_run
    return initial_run
