A Python implementation of stephencelis' GHI