Using And Operator In Python In If Statement