Support saving and loading across different Python versions