def indent(line): return len(takewhile(iseq(' '), line))
def clean(line): return takewhile(lambda c:c!='(' and c!='{', line.strip())