[pylint] Fix W0106 - Pointless use of circuits.
Change for if staments.