Fix history-substring-search; add python completion