Consider the following example:
import string,cgi,time from os import curdir, sep from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer class MyHandler(
If you want to share files in a folder of any type, then you can also try typing the command
python -m SimpleHTTPServer
This will start the server at port 8000 and you can browse the files (via directory listing)