Fix tp_flags for Python 3