Merge pull request #22 from jimmysong/22

Fix pointed out by kazcw to get the same results in electrum.py and bloc...