python code to find sum of digits of a number