Translate promote.sh to promote.py