<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def init(h):
 """Initialize existing object into the heap."""

    # heapify
    n = h.size()
    for i in six.moves.range(int(math.floor(n/2)) - 1, -1, -1):
        down(h, i, n)