fix python 2.5 unknown elementree method