update python lib for indexing