code: def normalizePointType(value):
      
      allowedTypes = ['move', 'line', 'offcurve', 'curve', 'qcurve']
      if not isinstance(value, basestring):
          raise TypeError("Point type must be a string, not %s."
                          % type(value).__name__)
      if value not in allowedTypes:
          raise ValueError("Point type must be '%s'; not %r."
                           % ("', '".join(allowedTypes), value))
      return unicode(value)
docs: Normalizes point type.
  
      * **value** must be an string.
      * **value** must be one of the following:
  
        +----------+
        | move     |
        +----------+
        | line     |
        +----------+
        | offcurve |
        +----------+
        | curve    |
        +----------+
        | qcurve   |
        +----------+
  
      * Returned value will be an unencoded ``unicode`` string.