Store globals in pickle