python check if number is integer or float