def progress_element(toppath, path):
 state = progress_read()
 if (toppath not in state):
  return False
 imported = state[toppath]
 i = bisect_left(imported, path)
 return ((i != len(imported)) and (imported[i] == path))

def progress_element ( toppath , path ) : state = progress_read ( ) if ( toppath not in state ) : return False imported = state [ toppath ] i = bisect_left ( imported , path ) return ( ( i != len ( imported ) ) and ( imported [ i ] == path ) )
return whether path has been imported in toppath .