Fix search on python 3

[fix #2]