Multiple Conditions In If Statement Python Code