PEP8 corrected
more PEP8 corrections
and another missed PEP8 correction
added rpc wrapper class
rewrote messagehandler to use rpc wrapper class