Minor cleanup of a comment, and use binary mode for fdopen
Make the usage of Bytes in callbacks optional, default to strings
to maintain compatibility with older Python modules.