So Python would definitely be middleware, not client side. I really do feel like you want to move more things on the client side than should be there sometimes.
Real database uses do much more than “store data.” You can do analytics when the core features like math equations are there.
This particular issue would be solved by plugins / adapters one day where people would write their own algorithms (hopefully in something like custom dql with all the neo4j features). This could NOT be done on the client side efficiently and is the reason why Dgraph has a GraphQL layer… to avoid the middleware all together.
Databases need queries, and great queries, to look at the data.