In his answer to Starting and stopping ArcGIS Server map services using Python? @Jeff Berry posted how can we can programmatically stop and start ArcGIS Server 10.0 map services using Python.
How do I stop services in ArcGIS 10.5?
I couldn't find AGSSOM there.