added work towards event driven console/python integration.
currently single threaded, and relies on casting to appropriate type.
next should refactor to use templates for type safety and support a
dedicated thread for the python interpreter. (make the event queues thread-safe).