I came across ezdxf for creating dxf output with python, and it is by far the best package I’ve tried so far. Support for multiple formats, importing and writing dxfs (so we can combine dxf files!), a lot of entities, layers, colours. Everything your dxf project needs!
So now the puzzle box website dxf output works properly! Thanks ezdxf!