Python script taking care of generator start/stop based on battery status