Change ValueErrors to TypeErrors and add PyList_Check() assertions.
Change ValueErrors to TypeErrors and add PyList_Check() assertions.

sk-/python2.7-type-annotator,sk-/python2.7-type-annotator,sk-/python2.7-type-annotator