def babble(digest, seed=1):
    """ Compute bubble babble for input buffer.
    >>> babble('')
    'xexax'
    >>> babble('1234567890')
    'xesef-disof-gytuf-katof-movif-baxux'
    >>> babble('Pineapple')
    'xigak-nyryk-humil-bosek-sonax'
    >>> babble('lol')
    'xirak-zorex'
    >>> import hashlib
    >>> babble(hashlib.sha1('lol').digest())
    'xibaf-nanob-fyzib-bikyh-davot-zotos-ryzah-decir-lucus-donoz-poxex'
    >>> babble([70, 85, 129, 199])
    'xicih-habes-laxex'
    >>> babble(0)
    'xebax'
    """
    ret = 'x'
    x = y = None
    iters = [maybe_ord(digest)] * 2
    for x,y in itertools.izip_longest(fillvalue=None, *iters):
        ret += vowels[(((x >> 6) & 3) + seed) % 6]
        ret += consonants[(x >> 2) & 15]
        ret += vowels[((x & 3) + (seed / 6)) % 6]
        if y is not None:
            seed = ((seed * 5) + (x * 7) + y) % 36
            ret += consonants[(y >> 4) & 15]
            ret += '-'
            ret += consonants[y & 15]
    if y is not None or x is None:
        ret += vowels[seed % 6] + 'x' + vowels[seed / 6]
    return ret + 'x'
 Compute bubble babble for input buffer.
    >>> babble('')
    'xexax'
    >>> babble('1234567890')
    'xesef-disof-gytuf-katof-movif-baxux'
    >>> babble('Pineapple')
    'xigak-nyryk-humil-bosek-sonax'
    >>> babble('lol')
    'xirak-zorex'
    >>> import hashlib
    >>> babble(hashlib.sha1('lol').digest())
    'xibaf-nanob-fyzib-bikyh-davot-zotos-ryzah-decir-lucus-donoz-poxex'
    >>> babble([70, 85, 129, 199])
    'xicih-habes-laxex'
    >>> babble(0)
    'xebax'
    
recipes/Python/578319_bubblebabble/recipe-578319.py