There is another quite impressive solution for this problem using GPU based raycasting approach together with Depth Peeling and Bezier Clipping algorithms.
Implementation is not straightforward but performance is worth it. Please check the white-paper.
Not sure if Python is good idea for such problem since is more related to shader programming.
If you still interesting we can collaborate together to solve this problem. I suggest to use tollingtooling like Godot, Unity or Unreal