Implement suggestions of https://scientific-python.github.io/repo-review/?repo=cms-nanoAOD%2Fcorrectionlib&branch=master