Python Code For Generating A Digital Signature