First Order Inductive Learner (FOIL) algorithm implemented in Python