added lines_to_routes.py

first try, still needs fixing, causes "unknown" exception