I have been playing around with the objc_util module in order to retrieve information about the various photo albums that are defined in the Photos app. These include user albums and smart albums. Properties I'd like to know about these albums are the localized name, the type (shared, smart, regular) and things like the number of photos and videos and the earliest and latest dates of items in an album. The link below shows a module with my results so far:
https://gist.github.com/44f6a49ac858a0cb0917c3dbb79e1c79
Basically all the functionality I mentioned is present and can be used by calling the appropriate functions. The only funky thing I encountered was the fact the the localizedTitle property of a smart album only returns the English version of the album title, not the Dutch one (which I'm interested in): hence the presence of the two functions with __localized in their name, in which I determine the Dutch name of the smart albums. I don't like this setup (not very flexible for other languages than Dutch), but for the moment this is what I came up with.
Next step of course is getting the photos in the albums, but first things first. Besides, I've seen some examples of this, so those will come in handy :-)
I've relatively new to Python, so comments / improvements are very welcome. Thanks!