Set the pointer to NULL during initialization.
Further work on the python wrapper. Segfaults, segfaults everywhere. I think it's due to my failings with the python object refcounting... will bust out a debugger soon.