python3 support

I have to use json_field with python3, so here are my changes, if they are useful =)