def create_ifcpolyline(ifcfile, point_list):
    """ Creates an IfcPolyLine from a list of points, specified as Python tuples."""
    ifcpts = []
    for point in point_list:
        point = ifcfile.createIfcCartesianPoint(point)
        ifcpts.append(point)
    polyline = ifcfile.createIfcPolyLine(ifcpts)
    return polyline