add cpychecker inspired fixes; document how to do the same
Merge pull request #210 from ged-lab/python-c-cleanup

add cpychecker inspired fixes; document how to do the same
fix memory leaks detected by coverity.
Merge pull request #211 from ged-lab/python-c-cleanup

fix memory leaks detected by coverity.
merge master again