'Converts the path to Python list.
@param flat By default, this function returns a list of 2-tuples
[(x, y), ...].  If this argument is true, it returns a flat list
[x, y, ...] instead.
@return A list of coordinates.'

def tolist(self, flat=0):

    pass
