Add a simple python implementation of A-Priori