Function `rename` has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring. https://codeclimate.com/github/Smcculle/gfspython/zmaster.py#issue_5ab4917add0fb2000100003d