def make_bucket_map(buckets):
    """Construct a hash from a buckets source string of the form a:b,c:d."""
    retval = {}
    for bucket in buckets.split(","):
        source, target = bucket.split(":")
        retval[source] = target
    return retval