python code for sum of digits of a number