Former syntax is invalid in Python 3