Python 3 with Dirk's feedback