Pymug is a Python multi-user game package. It uses pure Python 3, TLS sockets for network communication with clients, and rethinkdb for server-side storage. You can use it to define game commands in terms of the Entity-Component-System game model.
Building a custom game server
For a working example, check out the examples/ folder. Written explanations will arrive at a future date.