Wikiversity uses a custom quiz format to construct quizzes, documented on pages like https://en.wikiversity.org/wiki/Help:Quiz , https://www.mediawiki.org/wiki/Extension:Quiz , etc.
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.
https://pypi.python.org/pypi/pyslet and https://code.google.com/p/qtimigration/ might be a suitable data structure 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