Updated util.py and test_util.py

Added gather_categories() and parse_unifrac() to util.py.
Changed unit testing script to accommodate for new functions in util.py.
Updated both the files to conform to PEP8 style format.