def Parser(file):
 asf = Asf(file)
 if ((not len(asf.audio)) or len(asf.video)):
  return asf
 audio = AsfAudio()
 for key in audio._keys:
  if (key in asf._keys):
   if (not getattr(audio, key, None)):
    setattr(audio, key, getattr(asf, key))
 return audio

def Parser ( file ) : asf = Asf ( file ) if ( ( not len ( asf . audio ) ) or len ( asf . video ) ) : return asf audio = AsfAudio ( ) for key in audio . _keys : if ( key in asf . _keys ) : if ( not getattr ( audio , key , None ) ) : setattr ( audio , key , getattr ( asf , key ) ) return audio
wrapper around audio and av content .