Fixing bug with jsonrpc._Method caused by debugger

Adding __repr__, __str__ and __dir__ to jsonrpc._Method in order to avoid
issues with PyCharm debugger due to these functions being called and
accessing __getattr__ which mutates the _Method object