Added GET and POST handlers to python server, fixed JSON