def decrypted_dict(data, encryption_key=None):
 return_data = {}
 if (not data):
  return return_data
 for (prop_name, prop_value) in data.items():
  (method, value) = prop_value
  decrypted_value = decrypt(method, value, encryption_key)
  prop_string = jsonutils.loads(decrypted_value)
  return_data[prop_name] = prop_string
 return return_data

def decrypted_dict ( data , encryption_key = None ) : return_data = { } if ( not data ) : return return_data for ( prop_name , prop_value ) in data . items ( ) : ( method , value ) = prop_value decrypted_value = decrypt ( method , value , encryption_key ) prop_string = jsonutils . loads ( decrypted_value ) return_data [ prop_name ] = prop_string return return_data
return a decrypted dict .