python check if input is integer or float