Works in Python 3