Refactored so that Python and Console communicate entirely through Event system.
This is to allow further progression towards being able to separate them to their
own threads.