Use BeautifulSoup4
it works to decrypt an otr_keystore.ofcaes file and turn it into pidgin format