Implementing Python searches