def SetIfNotNone(dict, attr_name, value):
 if (value is not None):
  dict[attr_name] = value

def SetIfNotNone ( dict , attr_name , value ) : if ( value is not None ) : dict [ attr_name ] = value
if "value" is not none .