Python stream stdout of commands to RabbitMQ or the like