rewrote sha1mod.py