At this point:
response = dns.query.tcp(tkey_query,'x.x.x.x',timeout=10,port=53)
In the traceback seeing the following:
dns.tsig.BadSignature: The TSIG signature fails to verify.
File "gssapi/raw/message.pyx", line 135, in gssapi.raw.message.verify_mic
gssapi.raw.exceptions.MissingContextError: Major (524288): No context has been established, Minor (39756039): Attempt to use incomplete security context
From the comments from the example author, it looks like changes were required in messages.py for the example to work at the time of its writing. Has anybody been able to get this functioning/have a working sample?