Python library to interact with keepass databases (supports KDBX3 and KDBX4)
https://github.com/libkeepass/pykeepass/