def _kwa(val, onts, mdb_safe=False):
 if (not mdb_safe):
  return dict([(k, from_dict(v, onts)) for (k, v) in val.items() if (k not in EXP_SKIP)])
 else:
  _skip = ['_id']
  _skip.extend(EXP_SKIP)
  return dict([(k.replace('__', '.'), from_dict(v, onts)) for (k, v) in val.items() if (k not in _skip)])

def _kwa ( val , onts , mdb_safe = False ) : if ( not mdb_safe ) : return dict ( [ ( k , from_dict ( v , onts ) ) for ( k , v ) in val . items ( ) if ( k not in EXP_SKIP ) ] ) else : _skip = [ '_id' ] _skip . extend ( EXP_SKIP ) return dict ( [ ( k . replace ( '__' , '.' ) , from_dict ( v , onts ) ) for ( k , v ) in val . items ( ) if ( k not in _skip ) ] )
key word argument conversion .