Python mediator fully working