Python access to attribute lists