shutdown and restart

I need use python to shutdown and restart Yun. Is it possible ? How ?

Maybe you can make Python run the '/sbin/reboot' program ...

kind regards,

Jos