def _api_key_patchops(op, pvlist):
 return [{'op': op, 'path': p, 'value': v} for (p, v) in pvlist]

def _api_key_patchops ( op , pvlist ) : return [ { 'op' : op , 'path' : p , 'value' : v } for ( p , v ) in pvlist ]
helper function to return patchoperations object .