[python] add word chain