New run.py script, minfixes