Python Get Path Directional Derivative