Restore accidentally-deleted `#ifdef HAVE_PYTHON`.