Clean up of minion.py.