some minor PEP8 etc changes

hi grinich

some minor PEP8 etc changes proposed