little refactoring
python api client search() method