added indexing capability to Pyob