[python] add string searching