How to know if the characters in a python str are alphabetic?