import sys in cli.py