Make odf2john work with python 2.6 (as well as 2.7).
Change odf2john so we fall back to the deprecated function only if the newer
one is not supported.