Hey guys,
I am preparing a bigger script for spatial data processing using, inter alia, arcpy.
Part of the script is supposed to mosaic the newly added raster datasets to a geodatabase. The original rasters have no background but after using the Mosaic to New Raster function, a white background is added. I know that this background can be masked out in the symbology pane but I would like to handle it using arcpy. Could you please suggest a solution?

Before mosaicing

After mosaicing