properly determine testnet with run.py