changed .items() into .iteritems()
removed config.update({option: value}) for config[option] = value