fixed compilation problems for Snap.py in shash.h