This python3 example shows, how to get a Let's Encrypt certificate using the ACMEv2 API.
It is based on the example from the acme library as part of the certbot repository.
It doesn't use the OpenSSL python package, because the authors of certbot want to removethis dependency in future. We don't want to reintroduce a dependency in a simple exmaple, which will be intentionally removed from the library investing hard work.
Stefan Helmert