Removes redendent itertools import
Implements section A pipeline