remove unused imports
remove smart quotes
output dictionary to file concurrent with construction