add python version of search-insert-position