The draw
method of reportlab.graphics.barcode.code39.Extended39
doesn't take anything as input: see the source code.
Furthermore, it seems like the reportlab
library only allows you to draw on PDF. See this code snippet for an example.
I'd advise to use the python-barcode library which allows you to work on code39 barcodes and to draw them on images.