como fazer o código só vai quando python

run_once = 0
while 1:
    if run_once == 0:
        myFunction()
        run_once = 1:
Spotless Shrike