Derive account name from given WIF key using steem-python module?

Words
122
Reading
1 min
Listen
Play
9y

Hello developers,

I am working on a soft GUI wallet using python, and I was wondering if someone could explain to me how to derive an account name from a WIF key using the steem-python module (steem.readthedocs.io). Basically, I have a user entering their account username and their WIF active key, and I want to check if the WIF key belongs to the account whose username they have entered. What I hope to achieve is demonstrated in this screenshot from jesta@jesta's GUI wallet, Vessel:

Here, I have entered jesta@jesta's username and my one of own WIF keys, and Vessel detects that the WIF key does not belong to jesta@jesta's account. Is it possible for me to accomplish the same thing with steem-python?