Fix search function, tweak interactive.py