code: def path_encloses_pt(pt, opt, path):
      
      assert path.isclosed()
      intersections = Path(Line(pt, opt)).intersect(path)
      if len(intersections) % 2:
          return True
      else:
          return False
docs: returns true if pt is a point enclosed by path (which must be a Path
      object satisfying path.isclosed==True).  opt is a point you know is
      NOT enclosed by path.