attempted fix for json decode bug in python 3.4