Hi,
on Systems with python 3.8, the response ist always "LEAP STATUS CRITICAL - System clock is not in sync. | leap_status=2;0;2;;2".
I think there is a problem with line 205 "if line.split(': ')[1] == 'yes\n':".
When I comment it out, the "tdctl_status" is "0".
When I print the Line out ( "print(if line.split(': ')[1])" ), the output in my SSH-Session is "yes" followed by new line.
Greetings