Python If Path Does Not Enclose