pi script