Python Check If Character Is Alphanumeric