new afc_shell.py