Sage and python additions

Zero directions function added to mimo tools
Saged example 4.9
Sage solutions for exercises 4.6 and 4.7