projection of a point on a line python