finish python version math problems