register_namespace
is only available since Python 2.7
There might be another way to preserve namespaces with ElementTree in 2.5, but I'm not aware of it.
Alternatively, you could try another parsing library. lxml preserves namespaces and its API is compatible with ElementTree.