def get_index(usage_key, children):
 children = [unicode(child) for child in children]
 return children.index(usage_key)

def get_index ( usage_key , children ) : children = [ unicode ( child ) for child in children ] return children . index ( usage_key )
inputs a table and some subset of its columns .