Toy api server based on tcp/ip, twisted and json