Example of Python 2.7 conversion