New utils file with one utility: booleanize()
New utils file with one utility: booleanize()

booleanize() takes a relatively arbitrary string and returns whether
it means true, false, or gibberish.  Unlike Python booleans, this
is represented by -1 for False, 1 for True, and 0 for invalid
(which conveniently allows an 'if not booleanize()' paradigm).

sunfall/giles