Rewrite server script with Python 3

Rewrite server script with Python 3, better performance than node.js,
no errors during data communicating via socket.