Reformatted python code with black and silence some pylint warnings