Move parsing of options into config.py