Python3 compatibility

Fix a few missing bits to make jsonpickle run under python3.

Signed-off-by: David Aguilar <davvid@gmail.com>