Hi in my code there is a dictionary of dictionary.
nrec={\'bridge\': \'xapi1\', \'current_operations\': {}, \'uuid\': \'9ae5ca7d-e7d6-7a81-f619-d0ea33efb534\', \
One possible solution is
>>> try: if nrec["other_config1"]["is_guest_installer_network"] == 'true': print 'Do Something' except (KeyError,TypeError): None #Or do something logical