title: TrueTypeFonts - decomposeOutline function not working with calculateContours map object output
body: <p>I have been working with the ttfquery library with Python. Currently, I am trying to map/find the points that form the contour of the Times New Roman font, however, I have had trouble due to map to list conversions that aren't working in Python 3. Below is my code and the error I am receiving.</p>
  <pre><code>#imports above 
  
  char = &quot;A&quot;
  font_url = &quot;./times-new-roman.ttf&quot;
  font = describe.openFont(font_url)
  g = glyph.Glyph(glyphquery.glyphName(font, char))
  contours = g.calculateContours(font)
  o = glyph.decomposeOutline(contours[1])
  print(o)
  
  </code></pre>
  <p>This gives me the following error:</p>
  <pre><code>Traceback (most recent call last):
    File &quot;/Users/nityaarora/Documents/geometry_ocr/detection.py&quot;, line 11, in &lt;module&gt;
      o = glyph.decomposeOutline(contours[1])
    File &quot;/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/ttfquery/glyph.py&quot;, line 121, in decomposeOutline
      if len(contour)&lt;3:
  TypeError: object of type 'map' has no len()
  </code></pre>
  <p>I understand that, as Python3 doesn't give maps capabilities of lists/list conversions as Python2 did. However, even when I try to convert the map to a list in the argument like so:</p>
  <pre><code>char = &quot;A&quot;
  font_url = &quot;./times-new-roman.ttf&quot;
  font = describe.openFont(font_url)
  g = glyph.Glyph(glyphquery.glyphName(font, char))
  contours = g.calculateContours(font)
  o = glyph.decomposeOutline(list(contours[1]))
  print(o)
  </code></pre>
  <p>I get another error about the NoneType object not being callable (I assume it is from the function that the contour map object has in its function parameter).</p>
  <pre><code>Traceback (most recent call last):
    File &quot;/Documents/geometry_ocr/detection.py&quot;, line 11, in &lt;module&gt;
      o = glyph.decomposeOutline(list(contours[1]))
  TypeError: 'NoneType' object is not callable
  </code></pre>
  <p>Is there any way for me to turn the map into a list object? Or to make the decomposeOutline function work?</p>
  <p>It seems that for any usage of the TTFQuery library, I will have to end up making some type of map to list conversion since it hasn't been updated much since Python2.</p>