A Brokr implementation in python