Fixed memory issue by replacing itertools.product and got slow_tests to all pass!