Pi Function In Python With Parameters Definition