using SimpleHTTPServer to handle requests