Compiling errors fixed. This version works with the python GUI