Use BytesIO instead of StringIO for Python3 compatibility.
global: Need to import from an absolute path starting with pyndn for Python 3 compatibility.