libatasmart does not currently ship with Python bindings. Fortunately, I've written them. Code is available here: https://github.com/Rupan/libatasmart (see the "python" branch) It isn't 100% complete and could probably use a redesign of sorts, but it works for me and I won't be updating it further. I thought it might be nice if it could be included/maintained upstream.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.