def _decode_pa_dict(d):
 retval = cdict()
 for (k, v) in d.items():
  if isinstance(k, tuple):
   for subk in k:
    retval[subk] = v
 for (k, v) in d.items():
  if (not isinstance(k, tuple)):
   retval[k] = v
 return retval

def _decode_pa_dict ( d ) : retval = cdict ( ) for ( k , v ) in d . items ( ) : if isinstance ( k , tuple ) : for subk in k : retval [ subk ] = v for ( k , v ) in d . items ( ) : if ( not isinstance ( k , tuple ) ) : retval [ k ] = v return retval
decodes dict passed to prot_attrs .