Sample functions from math to python