add reduce to the list of imports from six.moves