First pass at a script for automating masters restarts by class(buckets)