'encoding' is deprecated and removed in Python 3.9 could fix this https://github.com/taizan-hokuto/pytchat/issues/24