Setting Python 3 Mathematical Functions