intersectin_segments.py added [buggy]