Fixed widespread memory leak.

Functions that return values in a list were leaking references to the
returned objects. Added lots of Py_DECREF() to cure it.