Python Function Return Boolean And String