Hey @hamed.sangin ,
Your code looks correct there and I think I know what is going on. Are you in Rhino 8 and are you using the Python 3 Grasshopper component? If so, that is not compatible with all of the LBT-Grasshopper components because they use GHPython (a flavor of IronPython 2) instead of cPython 3.
To make a component that works with the LBT-Grasshopper components, double-click a blank part of the Grasshopper canvas and type #GHPython
to bring up a GHPython component that can work with any LBT-Grasshopper component. Then just edit the GHPython component inputs/outputs and copy/paste your code in there. Then, it all should work.