Removed deprecated syntax in Python 3.