Leak cleanup

This fixes some of the "low-hanging fruit" leak issues...  There are still plenty of leaks in and around the Python code, but those will be much harder to track down.