Techniques and code snippets culled from my colleagues for Python documentation, coding, testing, verification, and continuous integration — I’ve pulled together these forty refactoring techniques from colleagues with whom I have learned a lot of advanced software engineering over many years. The programming journey has been in multiple languages on multiple projects for over thirty years. There are before and after Python code examples that apply each technique.