Python 3 conversion resources

Here’s a list of resources for Mac admins converting their scripts from Python 2 to Python 3.

Python 3 framework (generic/stock framework from
(relocatable framework with pip, PyObjC, xattr, and six pre-installed)



Install python-modernize and pylint using pip:

pip install modernize
pip install pylint


Apple Installer pkg containing python-modernize and pylint:


six is installed as part of Apple’s Python 2.7 install; if you download the relocatable Python 3 framework from the link above, it also includes (a newer version of) six.

The Conservative Python 3 Porting Guide

Cheat Sheet: Writing Python 2-3 compatible code

One case-study

Python 3 conversion resources