# -*- coding: utf-8 -*-


class Heap(object):
  """Implements a heap data structure in Python.

  The underlying data structure used to hold the data is an array.
  """

  __heap = []

  def __init__(self, initial=[]):
    """Creates a new heap.

    Args:
      initial: (Optional): A continguous array containing the data with which to
        initialize the new heap.
    """
    self.__heap = []

@@ -207,18 +207,20 @@
 initial=
-%5B%5D
+None
 ):%0A    %22
@@ -374,16 +374,82 @@
     %22%22%22%0A
+    if isinstance(initial, list) or isinstance(initial, tuple):%0A  
     self
@@ -450,19 +450,24 @@
   self.__heap = 
-%5B%5D
+initial
 %0A

Fix massive bug in initialization