Steve - Good catch - in v1.3, I added some Unicode support for pyparsing, although I have not gotten much feedback that anyone is using it, or how well it works. So it is preferable to test against basestring instead of str.
-- Paul -- http://mail.python.org/mailman/listinfo/python-list