Python code for the post "Sending and Authenticating Messages with Elliptic Curves"