DEV-9 | multiple python versions: code refactoring