A Python implementation of a hedonometer