convert ruby script to python to align with other tools and broader install base