I'm using a nice small python-script from zopelabs:
objects = context.objectValues()                        #get the objects in this folder

for object in objects:
    print "id:", object.id

    property_names = object.propertyIds()       # list of dictionaries of property names.
    for property in property_names:
        print property + ": " + object.getProperty(property)

    print
    print

return printed
The things I don't get are use of the double print statement and more importantly the need for returning printed.
Why isn't print enough.
Thanks.