Fix ImportError: cannot import name URITemplate

The good pull request to fix the issue related to uritemplate.
The unit-tests are updated according to this however 4 of them are still failing (not related to uritemplate). Don't mind the name of the branch, I am tired and I forgot that every pull request generate a new issue number ... It is why I advise you to check my work carefully.