Fiddling with layout
Fixed process communication so that Python process can exit
Tidy up