Hi Murali,
from a description I didn't get what exactly issue are you facing with. Did you also try the Python (MQTT Paho lib) example from StarterKit [1] ? Maybe that one will clarify it.
Regards,
Anton
[1] iot-starterkit/src/examples/python/mqtt-over-wss at master · SAP/iot-starterkit · GitHub