Return Boolean From Function Python Parameters