fixed up mimic.py