Block Diagram GUI code using wxpython