Fix init func in Python 3