fixed a few memory leaks
fixed swig python bugs when converting python lists to c arrays.
* was writting 0 past the end of the malloced array causing a crash
in some instances
* When passing Python None, it interpreted it as not a list so we were not
not able to pass None to the functions.
added some notes for debugging python bindings.