cython: Add support for using 'with' statements with AfcFile