cython: Add support for using Python 'with' statement when opening AfcFile