[python] add word search