petehunt/PyMySQL — pull request #144 by muetob (2013-04-05 08:38:32+00:00)
Title: Escape query in cursor.execute

In python3, from certain libaries (i.e sqlalchemy),
cursor.execute must deal with query in bytes.

So decode the query, before escape the args.