[Unit]
Description=Your Daemon
After=network-online.target
Wants=network-online.target systemd-networkd-wait-online.service
[Service]
Restart=on-failure
RestartSec=10s
ExecStart=/usr/bin/python3 /path/to/script
newb = Newbie(login,password)
newb.logging(login,password)