The result of the sum_data_bands routine is a new raster and you can calculate statistics on any raster. If you are still using the ENVI Classic API, you can use ENVI_STATS_DOIT:
http://www.exelisvis.com/docs/ENVI_ST...
This link also mentions the new API where you can use ENVIRasterStatisticsTask.