Python Function Always Returns A Value