How to check if a string is a valid python identifier? including keyword check? How to check if a string is a valid python identifier? including keyword check? python python