Use configparser instead of ConfigParser for python3.

For python versions > 3.0, use configparser instead of ConfigParser.
Use 'wb' instead of 'w' with open()

Python 3 is picky about byte and str. Open the file in 'wb' mode instead
of 'w' so that shutil.copyfileobj can copy the contents of the read
resources into a new file.