force nlinks to be positive.  Also did some PEP-8 cleanup.
minor PEP-8 clean-up
minor PEP-8 clean-up
bug fix.  Stop using 'node' variable in setattr, reverted to using 'self.'