For those who are interested, the tutorial is doable in Python too. One thing to watch out for is that things that appear as properties are at times functions; so safari.windows [rb] turns to safari.windows() [py] and "window.currentTab.name" [rb] turns to "window.currentTab().name() [py].