creating python decorators - Search