Fixed demo app to work with both python 2.5 (simplejson) and 2.7
(builtin json).
Merge pull request #36 from rjernst/master

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