dxfwrite is a python library to create DXF R12 drawings.
http://github.com/mozman/dxfwrite.git
stable