cleaned + copyright on netgen.py