fix python3 bug with itsdangerous