Use BytesIO for internal encoding/compression instead of StringIO.
Merge branch 'master' of https://github.com/kivy/kivy into gesture-fix
Merge pull request #1790 from matham/gesture-fix

Fix py3 gesture