core.py: import _flags_to_int
corecffi: import python_incref business