def hn(x, n):

    data = x
    for _ in xrange(n):
        data = h(data)
    return data
H^n(x) is H(x) called iteratively n times.
dataset/ETHPy150Open isislovecruft/obfsproxy/obfsproxy/transports/obfs2.py/hn