Fix tests and type error problems

I fixed the tests and fix the type problem using string formatting.

Could you please configure travis to automatically test pyjwt ?