How can I export Tubes to .obj

Your script has many issues, in any case here is an example on how to use the vtkObjExporter with tubes:
test.py (771 Bytes)

So, not a VTK issue.