Man, your last 3 comments nailed each of the 3 things I noticed since working with this code.  Great eye!!

* YES I totally agree that this should be done through getattr; localor is just an alias, and a pointless one.  I didn't know getattr until the last week or so; otherwise I would have done that directly!
* YES the handling of booleans was wrong in the original formulation, and I never corrected it when I generalized the command
* ... I can't find your 3rd comment, but it's in my email and it was spot on too.  Great job!

I'll make all these changes, and we can be done!  Woot! :)