Add "transparency" keyword to "setEnhancementTable" method, e.g.:

layer.setEnhancementTable('VisAD', transparency=0.5)

where transparency is between 0 and 1.

[1597]