`diskofferingid = sz.get('diskofferingid' , 0)` is nicer and more pythonic way to do that