Python code for TubesWithVaryingRadius?

I am really wondering if you could provide the corresponding python code for TubesWithVaryingRadius because I have very little experience in C++

https://kitware.github.io/vtk-examples/site/Cxx/VisualizationAlgorithms/TubesWithVaryingRadiusAndColors/