[ISSUE-150][Bug 20881] Fix handling of &lt; characters in bs.py.