add pydoc documentation to APT

document various private routines