better support for python 3 and json decoding in appier