You seem to use only heap[:][1], is heap[:][0] used anywhere?