convert some py:if clauses