Moves hash_any to pupil; localizes import try/except
Adds option to use putil.hash_any

Adds optional constructor argument to allow utilization of the putil.hash_any function for key generation