Python tool for manipulating pages documents