Fixed iacli/ia_mine.py to use Mine as a generator.