APE updates required to support latest Python 2.7 build.