distributed systems – Remote Procedure Calls using sockets

I am new to Distributed Systems and wanted to implement Remote Procedure Calls in Python. I am aware of rpyc which is built upon socket. However, I want to implement RPC from scratch using sockets, nothing high level though. So, just wanted to look for some good resources as I was unable to find any.