gnm: python tests and documentation

still need to fix GNUMakefile and makefile.vc