Update run.py

fix a bug for python3