BytesIO from six.
Python 2.6+ supports conditional expressions.
Merge pull request #216 from Lukasa/luk-sprint-branch

Sprint: Not supporting Python 2.4 is a blessing