Update linescan.py

[ci skip]