changing the syntax based upon the settings

It feels wrong to have the dictionaries inline, what is the idiomatic
python way?
indentify folder-level module using the project type