python check if int or string