fix backward compatibility with mysql-python(2)