code: def get_cf_distribution_class():
      
      if LooseVersion(troposphere.__version__) == LooseVersion('2.4.0'):
          cf_dist = cloudfront.Distribution
          cf_dist.props['DistributionConfig'] = (DistributionConfig, True)
          return cf_dist
      return cloudfront.Distribution
docs: Return the correct troposphere CF distribution class.