http://www.python.org/dev/peps/pep-0008/
I'd say take a look at some of the code in the standard library and in some other packages you've used before, then read this:
http://jcalderone.livejournal.com/39794.html
Then just go for it.
Reply on news.ycombinator.com