added line-to-line feature and corresponding python example