Use io.BytesIO instread of io.StringIO to emulate file objects.
Dropped Python 2.6 and 3.2 support.

- 2.6 dont support multiple context in with statement.
- 3.2 dont support u'' literal.