Convert Basics/Math to Python.