Port distribution_from_data() from CMPy.
Automatically import dit.example_dists.
Don't import pycounts if Cython isn't available.