Circuitpython Nested If Statement