Python 2.6 does not have sysconfig.
python: Fix encoding for "special" test script

Hopefully. Python's unicode history is a mess.
python: Produce Unicode strings in get_* methods
python: Get rid of to_string function in test script

Since values are now returned as strings in Python2 and Python3,
treating them as bytes in Python 3 would break tests.