Rewrote deploy script in python