[python] python's re: return True if string contains regex pattern