The module’s automatic test serves as an example of how to use the module from a script:
If you run the code from a different file then of course you need to import the module or the classes that you use from them. For example, you can import the logic class by calling:
from SegmentCrossSectionArea import SegmentCrossSectionAreaLogic
logic = SegmentCrossSectionAreaLogic()