Finally got a working instance in Python 3