List To Array In Python Using And In If Statement