Fix for Travis CI build

Write JSON file as binary for python 3.3