python check if upper or lower case