Fix error "__init__() keywords must be strings" for Python 2