Hi, Linus:
I believe there are examples in the test subdirectory, but
here's a Python example:
import getdns
from pprint import pprint
c = getdns.Context()
ext = { 'dnssec_return_validation_chain': getdns.EXTENSION_TRUE }
r = c.address('getdnsapi.net', extensions=ext)
pprint(r.validation_chain)
Melinda