Python3 compatibility - changes mysql client

Won't be very pretty, but it's doable.