how to check if string is alphabetic in python