Note that if you are using Windows as an operating system, depending on the OS version, you'll need to install OpenSSH to have access to the ssh-keygen. In this tutorial you'll find all the ways you can generate a key pair on Windows.
Now, this is where the cryptography package comes into play. You'll need to import the serialization module from the package for loading an RSA key. For simplicity's sake, I generated a public/private key pair using the ssh-keygen without a password on the .ssh folder inside my working directory. Now all you have to do is load said keys: 2b1af7f3a8