Python 2.5 backwords compatibility for MySQL search backend.