Changes to allow python-jws to work on Python 3.3

I've tested it on Python 2.7.x and Python 3.3+.  I did the changes so I could use python-jwt but in the end I went with PyJWT instead.  However, since I did the changes, I thought I'd offer them up to you if you'd like them included.