create_hmm_pickles.py: Add i/o