fix some bugs in minion-talk.py