Change ``str`` to ``code`` in pyparse.