ConfigParser.write() requires a file object instead of a path

Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>