Not sure what you mean by "deprecated". If you are using ArcMap, then you use arcpy.mapping. If you are on Pro, it's arcpy.mp.
The link I provided makes it easier to "translate" to arcpy.mp.
Maybe someone else knows a different way, but I think these are your options to control the "Map" with arcpy.
R_