Fix file_write bug in compile
Aggregate primary configuration variables in config.py in a dictionary
Modularize config extraction