python implmentation of the racadm tool