Add utils/write-disassembly-tests.py and refactor test_disassemblies.py