first commit some basic patches and python gui thingie