[python] update type ahead