Try to fix missing register_namespace in python 2.6