@madhubala

I faced the same issue and I have resolved it.
The problem occurred because of APIKEY.
Create a new app in "https://smartapi.angelbroking.com/apps" and feed the new APIKEY in the python login code.
Now it works without any issue.