Fixed pre/post release scripts for Python