I've installed pywallet on Debian bookworm
You may need to do this :
attempting to install python-dev causes lots of problems
install build-essential python2-dev python-bsddb3
edit #!/usr/bin/env python to #!/usr/bin/env python3
$ pywallet needs 'bsddb' package to run, please install it
install python3-bsddb3
$ ./pywallet.py --version
./pywallet.py:22: UserWarning: Python 3 support is still experimental, you may encounter bugs
version says pywallet.py 1.1 or is it 22?