Fix options.parse_config_file on Python 3.

Add a test for this function.

Closes #702.