Python Function Always Returns A Value True Or False