Allow bsddb3 for compatibility with Gentoo

Fix bsddb incompatibility with Gentoo

It is the same library, but unfortunately Gentoo renamed bsddb to bsddb3 when packaging it.
If bsddb is not found, try importing bsddb3 instead, before reporting error.
This works, to make pywallet successfully run on Gentoo.