It is true that it is specific code in vtk.js but the objects that get produced are the same as the C++ ones. In other words you have your various piece defined and available as example in JS so it create the proper vtk objects (vtkPolyData, vtkTexture, vtkActor, …).
And to me porting the JS code to Python should be fairly strait forward.