complete choose.py