fix KeyError is latest commit
fix KeyError is latest commit

The last commit was failing some tests due to a KeyError. This fixes
that problem by using .get() and providing a default.

DomainTools/python_api,DomainTools/python_api