in the connect() function of smartWebSocketV2.py replace the line with below definition and it fix the issue. The highglighted in bold is the changes I did in code to make it work
line having issue:
self.wsapp.run_forever(sslopt={"cert_reqs": ssl.CERT_NONE}, ping_interval=self.HEART_BEAT_INTERVAL,
ping_payload=self.HEART_BEAT_MESSAGE)
replace it with below corrected code:
self.wsapp.run_forever(sslopt={"cert_reqs": ssl.CERT_NONE}, ping_interval=self.HEART_BEAT_INTERVAL)