It's not possible to use it with Python. The hdbuserstore/SAP securestore only provides C/C++ API access.
For ODBC it actually is possible and a little search effort should have brought you to this old piece by me: HANA quick note - checking my connections and using them securely ...
Cheers,
Lars