Abandon the repeated try/except stuff inside config and opt for a local try/except inside functions which, if failed, forward the user to another script that handles unavailable packages. Could be something like:
try:
from chord import Chord
except ImportError:
print_install_instructions('Chord')
Abandon the repeated
try/exceptstuff insideconfigand opt for a localtry/exceptinside functions which, if failed, forward the user to another script that handles unavailable packages. Could be something like: