Phyton code to excecute a sudo restart for my server

Job ID: 33435674

Budget: $10 – $30 USD

I need a phyton code so I can use with conjuntion of CRONTAB -e so it can run every month and keep my MQTT running without any stopping
Related categories: Python Linux Software Architecture Ubuntu Server