String-BooleanSimple ported to Python from Perl.