make tests compatible with Python 3 (another try)