Safe Pickle for Python