Search results of python if else