Fix potential segfault at shutdown

Check Py_IsInitialized() in PyObjectWrapper destructor, which
can be called after interpreter shutdown

Change-Id: If9570d14a35ac3419a81846a59d972015205a858
Reviewed-by: John Cummings <jcummings2@users.sf.net>