Replacing deprecated method getchildren()

Using list() instead.

Using Python 2.7.5.