'Return the word histogram for an image.'

def get_imhistogram(self, imname):

    im_id = self.con.execute(("select    rowid    from    imlist    where    filename='%s'" % imname)).fetchone()
    s = self.con.execute(("select    histogram    from    imhistograms    where    rowid='%d'" % im_id)).fetchone()
    return pickle.loads(str(s[0]))
