I am working on a client-server simulation software. And I want the client to be implemented on the web, and also require that the client can do computations like matrix multiplication, random number generation etc., which framework can I use? And also I hope that the client side and server side communicate using simple socket, because the server code is implemented with c++. Any suggestions are really appreciated!! 
Thanks 
Simon
Matrix manipulation is in NumPy. Everything else listed in in the standard library. You may want to look into something like Twisted in order to mediate the network access though.
Python web client programming library