Pi Calculator written in python