added cool python calc function