add python indent and ignore function close mismatch