work with python3
add class `ImprovedApriori`