Frequent Pattern Growth Algorithm In Python