As I have pointed in in my other comment, you can use following syntax in python, ugly but better than multiple and (I don't use python anymore)
if dict.get('key', {}).get('key-nested',{}).get....: