title: min-heap with custom data type Python?
body: <p>I want to implement Fast Marching Method for Inpainting in Python. In literature, this has been implemented using a min-heap. Since it involves adding, removing and reordering the data structure many times, and each time extracting the smallest element. So the complexity for these operations need to be min preferably.</p>
  
  <p>I know there is a <code>heapq</code> in-built module in Python. It accepts a single <code>float</code> value. However, I need to store 3 different information content corresponding to a pixel. Is there a way I can tweak <code>heapq</code> to accept a list perhaps? </p>
  
  <p>Alternatively, is there a different data structure with this functionality?</p>