pyldb: check for errors in PyLdb_GetPyType()