Python implementation of the Frequent Pattern Growth algorithm