How to know if a python str ends in a given string?