Code compiles with Python 3.4