Rewrite script/upload in Python
Rewrite script/cibuild in Python