Persisting Data Safely Using Python