(issue 1029) Will not work on Python 3