__init__ with python3 support