Added shannon entropy, fixed clash in hypg.py