Update util.py

Added code for the binning parser in Issue #17.