throw error if @pyimport called before pyinitialize()