python check if input is integer or string