http://www.gentoo.org/proj/en/Python/python-r1/dev-guide.xml

The guide is not complete but a good starting point. also take a look at app-portage/eclass-manpages.