A Grapy calc writen in Python