hmm_generator in __main__