Python mathematic functions.