I ran into a similar issue with Python 3.6 after upgrading to Big Sur.
I went to https://www.python.org/downloads/ and downloaded version 3.9.0.
I then had to re-install some of my python packages e.g numpy too with the new Python version and things seem to be working again for me.