Digital Signature Algorithm Python Code