tp_print is deprecated in Python-3.8, and it causes an error in 3.9. PR: 262325 Approved by: yuri (maintainer)