change deprecated .getchildren() calls to use iteration. fixes issue #38