The python package receipt is missing gdbm-dev from the BUILD-DEPENDS line.
Including gdbm-dev allows the _bsddb and dbm modules to be built.
The remaining modules which fail to build automatically in the Cook log are:
- sunaudiodev - specific to the SunOS
- bsddb185 - legacy module for BerkeleyDB lib 1.85 (superceded by the _bsddb module since about python 2.3)