fix line.py