gras: created duck typed API for posting msgs

Uses templates and template overloads in c++
User python duck typing in the python case.

Cleans up post for #84