search: PEP8 and PEP257 fixes

Signed-off-by: Yoan Blanc <yoan.blanc@cern.ch>