code: def get_4pt_bezier(steps, points):
      
      for i in range(steps):
          t = i / float(steps)
  
          xloc = (math.pow(1 - t, 3) * points[0][0] +
                  3 * t * math.pow(1 - t, 2) * points[1][0] +
                  3 * (1 - t) * math.pow(t, 2) * points[2][0] +
                  math.pow(t, 3) * points[3][0])
          yloc = (math.pow(1 - t, 3) * points[0][1] +
                  3 * t * math.pow(1 - t, 2) * points[1][1] +
                  3 * (1 - t) * math.pow(t, 2) * points[2][1] +
                  math.pow(t, 3) * points[3][1])
  
          yield (xloc, yloc)
docs: Gets a series of bezier curve points with 1 set of 4
      control points.