Actions can now be an object created with `new` rather than a literal.
Merge pull request #407 from pygy/RPCobject

RPC Actions can now be an object created with `new` rather than a literal.