Python Variable Type Function Math Definition