FIX Python 3 compat
Python 3: encode string queries to bytes
Merge pull request #10 from ogrisel/python3-fixes

FIX Python 3 compat