def prefix_dict_keys(dictionary, prefix='_'):
 result = {}
 for (key, value) in six.iteritems(dictionary):
  result[('%s%s' % (prefix, key))] = value
 return result

def prefix_dict_keys ( dictionary , prefix = '_' ) : result = { } for ( key , value ) in six . iteritems ( dictionary ) : result [ ( '%s%s' % ( prefix , key ) ) ] = value return result
prefix dictionary keys with a provided prefix .