falling back to python 2.5 syntax, adjust for some mysql connection issues

-- python2.5 means can't use "with" or regular json package, gotta use simplejson.. [ugh]