update python signature code
fix python code typo
Merge pull request #1 from billzhong/patch-1

merge billzhong's python signature algorithm