Fix error reporting
Merge pull request #30 from okws/fix/python-jsonrpc

Fix error reporting