py: Fix configuration of math module.