Dwarf Fortress raw parser in Python