Python Function Return A Value If Two People