Run upgrade.py script