Converted Python server to Ruby server.