Py3k-friendly use of StringIO. Remove unused imports.
Merge pull request #4 from kimgr/stringio

Py3k-friendly use of StringIO. Remove unused imports.
Explicitly import functools.reduce to play well with py3k.
Merge pull request #5 from kimgr/reduce

Explicitly import functools.reduce to play well with py3k.
WINFUNCTYPE comes from ctypes, not ctypes.wintypes.
Merge pull request #6 from kimgr/ctypes

WINFUNCTYPE comes from ctypes, not ctypes.wintypes.