Document data stream in python files, made utf-8.

I added comments and formatting such that you can more easily see what
the data stream is and how it’s structured while looking at the code.