fixed python modulo hole depth/core length issue