formatting cleanup according to pylint