ElementTree in Python 2.5 and 2.6 didn't include a register_namespace function. Including a try/catch for backward compatibility.