Python3 maths library