flag is a boolean status. true false
"is this one of those things you are going to make me figure out for myself?"
well i guess if you're asking that question at this point , i could have posted the answer and you wouldn't even have known it :o)
actually i dont know python, sound's like you're on the right track