Https using socketserver?

I managed to program an http web server to run python script. Now I need to implement encryption. In the code below I already do the handshake between the client and the server. Where the client sends the version of (TLS) and the message (Client Hello). I’ve already generated the Certificate and the public and private keys, but I’m having trouble understanding and coding. Can someone give me a help ?

# Native module : socketserver ->
from socketserver import BaseRequestHandler, ThreadingTCPServer
# Native module : ssl ->
import ssl

class TCPIPV4HTTPS(BaseRequestHandler):

    class TLSProtocol():

if __name__ == "__main__":
    HOST, PORT = "", 443

    # Create the asynchronous server, binding to localhost on port 443
    with ThreadingTCPServer((HOST, PORT), TCPIPV4HTTPS.TLSProtocol) as https:
        # print("Server : Action v0.0.1, running address")
        # print("cancel program with Ctrl-C")

That’s among the most complicated protocols you could possibly implement as a learning experience. Are you having trouble with a certain specific step, or simply with starting at all, as it looks like there? If it’s just plain way too big to even figure out where to start without your brain rebooting, abandon this project and start with something smaller in scope with a state machine, like FTP, and work your way up to TLS if you absolutely MUST challenge the mountain.

I believe in the God of the impossible