def is_video(td):
 pricelabels = td('span', 'pricelabel')
 return ((len(pricelabels) == 1) and pricelabels[0].text.strip().startswith('Video'))

def is_video ( td ) : pricelabels = td ( 'span' , 'pricelabel' ) return ( ( len ( pricelabels ) == 1 ) and pricelabels [ 0 ] . text . strip ( ) . startswith ( 'Video' ) )
its a video if it has exactly one pricelabel .