make pylint better
minor python cleanups