Fix Python 3 packaging problems.
jws dependency doesn't support Python 3 yet though.