fixes typo, and makes jsonserver work with python 3

Issue #196