[IGN-4437] Ignition occasionally forgets how Python works?

Tip: you are posting all your code as quotations (using >). Format them as code using the </> button instead. It will give fixed width font and preserve indents.
See Wiki - how to post code on this forum for more.