bpo-32916: IDLE: Change `str` to `code` in pyparse (GH-5830)


Adjust tests and user modules to match.
(cherry picked from commit c29c03a34a9f3c82704b66f323ce5ea9dc89c8af)

Co-authored-by: Cheryl Sabella <cheryl.sabella@gmail.com>
5 files changed