start python server on local machine

i’m sorry for the stupid question, but how can i start python server on my loccal machine? i downloaded the interpreter from the official site. i’m developing an application that sends and receives a request. i found an example in msdn forums, but when i change the URI to http://localhost it gives me an error. what should i do?