Python parsing: def, if, indentation