defs.py is cleaned up and works.  I need to check on the interoperability of the binning function with the entropy calculating function now.