Fix for issue #31 (Can't run demo code in python2.7)

Fixed demo app to work with both python 2.5 (simplejson) and 2.7 (builtin json).