throw error if pyinitialize called after pyfinalize, bug fix in pywrap