fixed python slice build time issue