Linedetector python wrapper

this is fixed #1479