Cython based focused line monitor