restructure line/client.py