enable cgi & python at configure time, use new python packaging, cleanup