Safer import of pickle