improved automation for chempot.py