fix error preventing passing tag value to python script