Fix a bunch of things in utils / validators
- replace type(x) check with isinstance check
- remove True = 1 / False = 0 assignement
- remove some hexhversion < 2.x checks