tests/dictionary.py: rewrite to run dictionary parser tests for the Cainteoir dictionary format