Add fix ups to cpyamf for newer versions of Cython