def lineParse(s, f, fp):
    m = fp.match(s)
    if (m == None):
        raise s
    return tuple(map(f, m.groups()))
def lineParse(s, f, fp):
    m = fp.match(s)
    if (m == None):
        raise s
    return tuple(map(f, m.groups()))