Update flask_compress.py to additional work with Python 3

Fixed to work with python 3.x.  In python >3 StringIO was included in the io module.  This fix works with previous versions and is as suggested in the Python 3 Porting Guide.