First version of lineparser.py