Use uuid.hex instead of reinventing it.
Use real URL converters.
Correct OpenFisca casing.