Restart local nucleous service with python

Is there a way to restart the local nucleous service using python ?
thank you in advance
alex