Change python code for examples 5 and 7 to match examples 6, 8, ... 10

Fixes https://github.com/dexy/dexy/issues/112 and an AssertionError on example 7 (`d['script.py|py'] | assert_contains("3.14")` fails on the current example code `print phase(complex(-1.0, 1.0))`).