Updates to python counting scripts