Convert release from bash script to python script

Convert as much of the tool chain as possible to the language that this community understands best.