A python implementation of Apriori algorithm