initlog.py: switch from deprecated sha module to hashlib

Fix #40: python sha module deprecated