support branches in get_rev and fix local rev
fix environment variables being leaked outside of the release script, add more checks/questions and comments
convert release script to Python