import wraps for cache function
remove debug statements from compute_cdf
doctest: SKIP for issue 7702
Merge pull request #8396 from smichr/fin

import wraps where needed; remove debug code; skip doctest for issue 7702