Some CMakeList changes for the pythonapi.