Utilities to save python objects to file.