How to start and stop Appium from Python Appium test

I know this is possible with Appium java client… With the python client, can we start and stop Appium server from the test? Could someone please share a code snippet please?

Does anyone know a solution to this?