There are many standardised quiz formats, including QTI https://en.wikipedia.org/wiki/QTI and GIFT https://en.wikipedia.org/wiki/GIFT_%28file_format%29. The canonical reference for GIFT is at https://docs.moodle.org/28/en/GIFT_format and Moodle's reference PHP GIFT parser is at https://github.com/moodle/moodle/tree/master/question/format/gift
A library is needed to import a Wikiversity quiz into Python classes, and allow the quiz to be exported to other formats.
https://pypi.python.org/pypi/quizzer , https://pypi.python.org/pypi/Products.ECQuiz, and https://github.com/mitocw/moodle2edx/blob/master/moodle2edx/main.py contain some suitable code, but they are not a generic library.
https://github.com/edx/edx-platform contains a lot of quiz code, and some of it might be able to be extracted into an independent library.
Support for Wikiversity Quiz format must be added to an existing packaged library, or the subclass to hold Wikiversity Quiz data must be extremely simple (e.g. adding only a few additional elements)
See also : T24475: GIFT format