#!/usr/bin/env python3 """ Create proper 3DS file for LEITZ Bostitch 2-hole punch Fixed format for AutoCAD compatibility """ import struct import math def _write3dsChunk(f, chunk_id, data): """Write a 3DS chunk with proper format""" chunk_size = len(data) + 6 # 6 bytes for chunk header f.write(struct.pack('